import request from '@/utils/request'

// 获取部门列表数据
export const fetchDepartmentLiat = () => request.get('/company/department')

// 获取部门负责人列表
export const fetchManagerLiat = () => request.get('/sys/user/simple')

// 新增部门
export const fetchAddDepart = data => request.post('/company/department', data)

// 获取部门详情
export const fetchDetail = data => request.get(`/company/department/${data}`
)

// 编辑部门
export const fetchUpdateDepart = data => request.put(`
/company/department/${data.id}`, data)

// 删除部门
export const fetchRemoveDepart = data => request.delete(`/company/department/${data}`)
